import request from '@/utils/request'

/**
 * 分页查询款项来源信息
 *
 * @param {*} query
 */
export function getSmskFundList(query) {
  return request({
    url: '/smsk/admin/fund/list',
    method: 'get',
    params: query
  })
}

/**
 * 创建款项来源信息
 * @param {*} smskFundSource
 */
export function createSmskFundSource(smskFundSource) {
  return request({
    url: '/smsk/admin/fund/create',
    method: 'post',
    data: smskFundSource
  })
}

/**
 * 更新款项来源信息
 * @param {*} smskFundSource
 */
export function updateSmskFundSource(smskFundSource) {
  return request({
    url: '/smsk/admin/fund/update',
    method: 'post',
    data: smskFundSource
  })
}

/**
 * 删除款项来源信息
 * @param {*} id
 */
export function deleteSmskFundSource(id) {
  return request({
    url: '/smsk/admin/fund/delete',
    method: 'post',
    params: { id }
  })
}
